import {createBrowserRouter,Navigate} from 'react-router-dom'

import Error from '../pages/404/Index'
import Login from '../pages/login/Index'
import Home from '../pages/home/Index'
let routes=createBrowserRouter([
    {
        path:'/',
        element:<Navigate to='/login'></Navigate>,
    },
    {
        path:'/home',
        element:<Home></Home>
    },
    {
        path:'/login',
        element:<Login></Login>
    }
])

export default routes